package com.study.microservice.springcloud;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;

import java.util.Scanner;

@SpringBootApplication
public class ProviderUserTraceApplication {
    public static void main(String[] args) throws Exception {
        System.out.print("请输入端口号：");
        Scanner scanner = new Scanner(System.in);
        String port = scanner.nextLine();
//		SpringApplication.run(ProviderUserApplication.class, args);
        new SpringApplicationBuilder(ProviderUserTraceApplication.class).properties("server.port=" + port).run(args);
    }
}
